package demo_10_11_01;

public class work_02 {
    public static void main(String[] args) {

        String str = "ABCBA";

        char[] ch = str.toCharArray();
        for (int i = 0; i < str.length()/2; i++) {
            if(ch[i]!=ch[str.length()-i])
                break;
        }




    }
}
